﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BUS;
using DTO;

namespace QuanLyDoiXe
{
    public partial class MH_TraCuu : Form
    {
        public string ID;
        public int MaNV;
        public MH_TraCuu(string ID,int MaNV)
        {
            InitializeComponent();
            this.ID = ID;
            this.MaNV = MaNV;
        }

        private void btQuayLai_Click(object sender, EventArgs e)
        {
            new MH_QuanLy(ID,MaNV).Show();
            this.Close();

        }

        private void btTimKiemXe_Click(object sender, EventArgs e)
        {
            XeBus xBus = new XeBus();
            DGXE.DataSource = xBus.TimKiem(tbBienSo.Text, tbHieuXe.Text, tbSoKhung.Text, tbSoMay.Text);
        }

        private void btTimKiemDD_Click(object sender, EventArgs e)
        {
            DiaDiemBus ddBus = new DiaDiemBus();
            DGDiaDiem.DataSource = ddBus.TimKiem(tbTenDD.Text, tbDiaChi.Text, tbSoDienThoai.Text, tbNguoiLienHe.Text);
        }


    }
}
